package com.faxsun.api.wrapper.order;

import javax.servlet.http.HttpServletRequest;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import org.broadleafcommerce.core.web.api.wrapper.BaseWrapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component("fsOrderPaymentTransferWrapper")
@Scope("prototype")
@XmlRootElement(name = "fsOderPaymentTransfer")
@XmlAccessorType(value = XmlAccessType.FIELD)
@XmlType(name="fsOrderPaymentTransfer")
public class OrderPaymentTransferWrapper extends BaseWrapper {

	@XmlElement
	protected String type;

	@XmlElement
	protected String form;

	public void wrapDetails(String type, String form, HttpServletRequest request) {
		this.type = type;
		this.form = form;
	}

	public void wrapSummary(String type, String form, HttpServletRequest request) {
		wrapDetails(type, form, request);
	}

}
